<include file="Public:header"/>


        <!--body wrapper start-->
        <div class="wrapper">
			<!--主播列表 start-->
			<div class="row">
                <div class="col-sm-12">
                <section class="panel">
                <header class="panel-heading">
                    <a href="{:U('Pan/pan',array(gid=>$_GET[gid],showid=>1))}" style="color:#65CEA7;">前端显示中</a>
                    <a href="{:U('Pan/pan',array(gid=>$_GET[gid],showid=>2))}" style="color:#666;">未出现</a>
                    <a href="{:U('Pan/pan',array(gid=>$_GET[gid],showid=>3))}" style="color:#666;">已消失</a>
                    <!--<span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
					</span>-->
                </header>
                <div class="panel-body">
                <div class="adv-table editable-table ">
                <div class="clearfix">
                    <!--<div class="btn-group">

                    </div>-->
                    <!--<div class="btn-group pull-right">
                        <button class="btn btn-default dropdown-toggle" data-toggle="dropdown">Tools <i class="fa fa-angle-down"></i>
                        </button>
                        <ul class="dropdown-menu pull-right">
                            <li><a href="#">Export to Excel</a></li>
                        </ul>
                    </div>-->
                </div>
                <div class="space15"></div>
                <table class="table table-striped table-hover table-bordered" id="editable-sample">
                <thead>
                <tr>
                    <th>排序</th>
                    <th>ID</th>
                    <th>盘分类</th>
                    <th>盘信息</th>
                    <th>竞猜项目</th>
                    <th>移动排序</th>
                    <th>竞猜状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
					<volist name="list" id="l" >
						<tr class="">
							<td>{$l.displayOrder}</td>
							<td>{$l.id}</td>
							<td>
								<php>
								//分类1为主播
								if($l['fenlei']==2){
								</php>
									比赛
								<php>
								}else{
								</php>
									主播
								<php>
								}
								</php>
							</td>
							<td>
								<php>
								if($l['fenlei']==2){
								</php>
									<span style="color:#999;">{$l.game.ktime|date='Y-m-d',###}</span><br />
									<span style="color:#000;">{$l.game.name}</span><br />
									<span style="color:#3366CC;">{$l.tname1}</span>
									<span style="color:#CC3333;">VS</span>
									<span style="color:#3366CC;">{$l.tname2}</span><br />
									<span >{$l.name}</span>
								<php>
								}else{
								</php>
									<span >{$l.game.name}</span>
								<php>
								}
								</php>
							</td>
							<td>{$l.cname}</td>
							<td>
								<a href="{:U('Pan/pan_change',array(id=>$l[id],doid=>1))}">上一级</a>
								<br />
								<a href="{:U('Pan/pan_change',array(id=>$l[id],doid=>2))}">下一级</a>
							</td>
							<td>{$l.cstatename}</td>
							<td>
								<a class="tan_edit" data-toggle="modal" href="#bianjibox{$l.id}">详情</a>
								<eq name="l.cstate" value="1">
									<br /><a class="tan_edit" data-toggle="modal" href="#fengbox{$l.id}">封盘</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#liubox{$l.id}">流盘</a>
								</eq>
								<eq name="l.cstate" value="2">
									<br /><a class="tan_edit" data-toggle="modal" href="#jiebox{$l.id}">结算</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#liubox{$l.id}">流盘</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#kaibox{$l.id}">重开盘</a>
								</eq>
								<eq name="l.cstate" value="3">
									<br /><a class="tan_edit" data-toggle="modal" href="#chongjiebox{$l.id}">重新结算</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#liubox{$l.id}">流盘</a>
								</eq>
								<eq name="l.cstate" value="4">
									<br /><a class="tan_edit" data-toggle="modal" href="#fengbox{$l.id}">封盘</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#kaibox{$l.id}">重开盘</a>
									<br /><a class="tan_edit" data-toggle="modal" href="#chongjiebox{$l.id}">重新结算</a>
								</eq>
							</td>
						</tr>
						<!--编辑框 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="bianjibox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">详情</h4>
									</div>
		
									<div class="modal-body ">
										<div class="form-group">
											<label>总投注数：{$l.zongjinbi}</label>
										</div>
										<div class="form-group">
											<label>总人数：{$l.zongren}</label>
										</div>
										<div class="form-group">
											<label>选项信息</label>
											<div class="jinbixx">
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													选项
													</div>
													<div class="jinbixx_2">
													金币
													</div>
													<div class="jinbixx_3">
													人数
													</div>
													<div class="clear"></div>
												</div>
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													{$l.check1}
													</div>
													<div class="jinbixx_2">
													{$l.cjinbi1}
													</div>
													<div class="jinbixx_3">
													{$l.cren1}
													</div>
													<div class="clear"></div>
												</div>
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													{$l.check2}
													</div>
													<div class="jinbixx_2">
													{$l.cjinbi2}
													</div>
													<div class="jinbixx_3">
													{$l.cren2}
													</div>
													<div class="clear"></div>
												</div>
												
												<div class="clear"></div>

											</div>
											
										</div>
										<div class="form-group">
											<label>选项信息(real)</label>
											<div class="jinbixx">
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													选项
													</div>
													<div class="jinbixx_2">
													金币
													</div>
													<div class="jinbixx_3">
													人数
													</div>
													<div class="clear"></div>
												</div>
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													{$l.check1}
													</div>
													<div class="jinbixx_2">
													{$l.real_jinbi1}
													</div>
													<div class="jinbixx_3">
													{$l.real_ren1}
													</div>
													<div class="clear"></div>
												</div>
												<div class="jinbixx_li">
													<div class="jinbixx_1">
													{$l.check2}
													</div>
													<div class="jinbixx_2">
													{$l.real_jinbi2}
													</div>
													<div class="jinbixx_3">
													{$l.real_ren2}
													</div>
													<div class="clear"></div>
												</div>
												
												<div class="clear"></div>

											</div>
											
										</div>
										<div class="form-group">
											<label>玩家投注情况</label>
											<div class="touzhuxx">
												<div class="touzhuxx_li">
													<div class="touzhuxx_1">
													时间
													</div>
													<div class="touzhuxx_2">
													昵称
													</div>
													<div class="touzhuxx_3">
													ID
													</div>
													<div class="touzhuxx_4">
													投注项
													</div>
													<div class="touzhuxx_5">
													投注额
													</div>
													<div class="clear"></div>
												</div>
												<volist name="l.tou" id="t">
													<div class="touzhuxx_li">
														<div class="touzhuxx_1">
														{$t.ctime|date='Y-m-d H:i:s',###}
														</div>
														<div class="touzhuxx_2">
														{$t.user.name}
														</div>
														<div class="touzhuxx_3">
														{$t.userId}
														</div>
														<div class="touzhuxx_4">
															<php>
															if($t['checkx']==1){
															</php>
																{$l.check1}
															<php>
															}else{
															</php>
																{$l.check2}
															<php>
															}
															</php>
														</div>
														<div class="touzhuxx_5">
														{$t.changeAmount}
														</div>
														<div class="clear"></div>
													</div>
												</volist>
												<div class="clear"></div>

											</div>
											
										</div>

									</div>
		
								</div>
							</div>
						</div>
						<!--编辑框 end-->
						<!--封盘 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="fengbox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">封盘</h4>
									</div>
									<div class="modal-body ">
										<form action="{:U('Pan/pan_feng')}" method="post">
											<input type="hidden" name="id" value="{$l.id}">
											<div class="form-group">
												<label>确定封盘吗？</label>
											</div>
											<button type="submit" class="btn btn-primary">确定</button>
											<button class="btn btn-default " data-dismiss="modal"  type="button">取消</button>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!--封盘 end-->
						<!--开盘 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="kaibox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">开盘</h4>
									</div>
									<div class="modal-body ">
										<form action="{:U('Pan/pan_kai')}" method="post">
											<input type="hidden" name="id" value="{$l.id}">
											<div class="form-group">
												<label>确定开盘吗？</label>
											</div>
											<button type="submit" class="btn btn-primary">确定</button>
											<button class="btn btn-default " data-dismiss="modal"  type="button">取消</button>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!--开盘 end-->
						<!--流盘 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="liubox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">流盘</h4>
									</div>
									<div class="modal-body ">
										<form action="{:U('Pan/pan_liu')}" method="post">
											<input type="hidden" name="id" value="{$l.id}">
											<div class="form-group">
												<label>流盘原因</label>
												<input type="text" name="lpyin" value="{$l.lpyin}" class="form-control">
											</div>
											<button type="submit" class="btn btn-primary">确定</button>
											<button class="btn btn-default " data-dismiss="modal"  type="button">取消</button>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!--流盘 end-->
						<!--结算 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="jiebox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">结算</h4>
									</div>
									<div class="modal-body ">
										<form action="{:U('Pan/pan_jie')}" method="post">
											<input type="hidden" name="id" value="{$l.id}">
											<div class="form-group">
												<label>正确选项</label>
												<select name="true_check" class="form-control">
													<option value="1" >{$l.check1}</option>
													<option value="2" >{$l.check2}</option>
												</select>
											</div>
											<button type="submit" class="btn btn-primary">确定</button>
											<button class="btn btn-default " data-dismiss="modal"  type="button">取消</button>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!--结算 end-->
						<!--重新结算 start-->
						<div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" id="chongjiebox{$l.id}" class="modal fade">
							<div class="modal-dialog">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
										<h4 class="modal-title">重新结算</h4>
									</div>
									<div class="modal-body ">
										<form action="{:U('Pan/pan_chongjie')}" method="post">
											<input type="hidden" name="id" value="{$l.id}">
											<div class="form-group">
												<label>正确选项</label>
												<select name="true_check" class="form-control">
													<option value="1" >{$l.check1}</option>
													<option value="2" >{$l.check2}</option>
												</select>
											</div>
											<button type="submit" class="btn btn-primary">确定</button>
											<button class="btn btn-default " data-dismiss="modal"  type="button">取消</button>
										</form>
									</div>
								</div>
							</div>
						</div>
						<!--重新结算 end-->
					</volist>

                </tbody>
                </table>
                </div>
                </div>
                </section>
                </div>
			</div>
			<!--主播列表 end-->
		</div>
        <!--body wrapper end-->

    </div>
    <!-- main content end-->
	
<include file="Public:footer"/>

